package Entities;
// Generated Jun 21, 2009 1:07:04 PM by Hibernate Tools 3.2.1.GA


import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * ContentDetail generated by hbm2java
 */
@Entity
@Table(name="content_detail"
    ,catalog="pdlv2"
)
public class ContentDetail  implements java.io.Serializable {


     private Integer id;
     private ContentHeader contentHeader;
     private String koptext;
     private String text;
     private Date datum;
     private Boolean tonen;

     /**
      *
      */
     public ContentDetail() {
    }

    /**
     *
     * @param contentHeader
     * @param koptext
     * @param text
     * @param datum
     * @param tonen
     */
    public ContentDetail(ContentHeader contentHeader, String koptext, String text, Date datum, Boolean tonen) {
       this.contentHeader = contentHeader;
       this.koptext = koptext;
       this.text = text;
       this.datum = datum;
       this.tonen = tonen;
    }
   
    /**
     *
     * @return
     */
    @Id @GeneratedValue(strategy=IDENTITY)
    
    @Column(name="id", unique=true, nullable=false)
    public Integer getId() {
        return this.id;
    }
    
    /**
     *
     * @param id
     */
    public void setId(Integer id) {
        this.id = id;
    }
    /**
     *
     * @return
     */
    @ManyToOne(fetch=FetchType.LAZY)
    @JoinColumn(name="content_header_id")
    public ContentHeader getContentHeader() {
        return this.contentHeader;
    }
    
    /**
     *
     * @param contentHeader
     */
    public void setContentHeader(ContentHeader contentHeader) {
        this.contentHeader = contentHeader;
    }
    
    /**
     *
     * @return
     */
    @Column(name="koptext", length=200)
    public String getKoptext() {
        return this.koptext;
    }
    
    /**
     *
     * @param koptext
     */
    public void setKoptext(String koptext) {
        this.koptext = koptext;
    }
    
    /**
     *
     * @return
     */
    @Column(name="text", length=2000)
    public String getText() {
        return this.text;
    }
    
    /**
     *
     * @param text
     */
    public void setText(String text) {
        this.text = text;
    }
    /**
     *
     * @return
     */
    @Temporal(TemporalType.DATE)
    @Column(name="datum", length=10)
    public Date getDatum() {
        return this.datum;
    }
    
    /**
     *
     * @param datum
     */
    public void setDatum(Date datum) {
        this.datum = datum;
    }
    
    /**
     *
     * @return
     */
    @Column(name="tonen")
    public Boolean getTonen() {
        return this.tonen;
    }
    
    /**
     *
     * @param tonen
     */
    public void setTonen(Boolean tonen) {
        this.tonen = tonen;
    }




}


